package com.example.demo.service;

import com.example.demo.dao.Roleurl;
import com.example.demo.dao.User;
import com.example.demo.dao.UserRole;
import com.example.demo.utils.error.BusinessException;

import java.util.List;

public interface Userservice {
    List<User> findall();

    User findeid(Integer id);

    Integer insert(User user);

    int deleteByPrimaryKey(Integer id);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record) throws BusinessException;

    int updateByPrimaryKey(User record) throws BusinessException;

    User login(String username,String password);

    //权限列表查询
    List<UserRole> listroleid();
    //权限匹配url表遍历
    List<Roleurl> urllist();
    //根据url匹配对应的权限
    Roleurl urlpid(String url);
}
